package com.icez.videoplay.lpi

import android.app.Activity
import androidx.fragment.app.FragmentActivity
import com.icez.videoplay.enum.VideoPlayType

interface VideoPlayInterface {
    /**
     * @sample 初始化配置
     * @param mActivity Activity
     * @param mVideoPlayType 视频类型
     * @param apiKey api钥匙或者api id
     * @param videoId 视频id
     * @param initSuccess 初始化成功
     * @param initFail 初始化失败
     */
    fun initConfig(
        mActivity: Activity,
        mVideoPlayType: VideoPlayType,
        apiKey: String,
        videoId: String,
        fbUrl:String = "",
        initSuccess: ((width:String,height:String) -> Unit)? = null,
        initFail: ((errorMsg:String) -> Unit)? = null,
        playHeight: Float ?= 0f,
        playWidth:Float ?= 0f
    )

    /**
     * @sample 播放视频
     */
    fun setPlayVideo()

    /**
     * @sample 停止播放
     */
    fun setStopVideo()

    /**
     * @sample 取消静音
     */
    fun unMute()
}